import Vue from 'vue';
import Vuex from 'vuex';

import createPersistedState from 'vuex-persistedstate';
import modules from './modules/index';

Vue.use(Vuex);

export default new Vuex.Store({
    modules,
    plugins: [createPersistedState({
        storage: window.localStorage
    })],
    // strict: process.env.NODE_ENV !== 'production'
})
